View Issue Details

IDProjectCategoryView StatusLast Update
0001002K18X001.00 SKB SWANSWpublic2020-12-01 17:24
Reporter(ALTech) Wooshin Kang Assigned To(ALTech) Wooshin Kang Due Date2020-11-03 17:07
PriorityurgentSeveritys2-severeReproducibilityalways
Status closedResolutionfixed 
Summary0001002: [SWAN] STB status LED
DescriptionSTB status LED should work same with smart3.
Please implement.

Please check attache image.

Thanks.
TagsNo tags attached.
Attach Tags

Relationships

related to 0000876 closed(ALTech) Jason Park T99X171.00 SKB Eagle [BTF] BTF HAL FOR LED 

Users monitoring this issue

User List (SW) Jacky Chiang , (SW) Sam Yang

Activities

(ALTech) Wooshin Kang

2020-10-30 16:20

developer  

(SW) Sam Yang

2020-11-02 10:21

developer   ~0004806

Hi, Wooshin

Could you check with M/W the commands of these scenarios sent to HAL? ("led_id", "state" numbers, and "DEVICE_XXXX" function)
I need to know these two numbers and function name to implement.
THX.

(ALTech) Wooshin Kang

2020-11-02 15:23

developer   ~0004811

Dear Sam,

It is same with eagle(smart3), please check.

thanks.

(SW) Sam Yang

2020-11-05 09:02

developer   ~0004873

Dear Wooshin,

There are some sepolicy problems I need resolve first.

(SW) Sam Yang

2020-11-05 20:01

developer   ~0004885

Last edited: 2020-11-05 20:02

Dear Wooshin,
about LED status scenario, please ask M/W what number (led_id, led_state) of every scenario they will send to HAL, or I don't know the number meaning.
for example of this log:
11-05 13:52:36.644 365 683 I HAL_frontpanel: HAL_FrontPanelSetLedState, 66, in, LED idx 0, state 4

I know M/W send led id "0" and state "4", but I don't know which scenario they means...

led_status_scenario_list.png (98,533 bytes)   
led_status_scenario_list.png (98,533 bytes)   

(SW) Sam Yang

2020-11-06 09:00

developer   ~0004888

Hi Wooshin,

According to the file "BTF_LED_Scenario2..xlsx" of "0000876: [BTF] BTF HAL FOR LED",
1. LED state enum doesn't have: (please see "HAL_frontpanel.h")
            LED_STATE_NETWORK_OK, LED_STATE_NETWORK_ERROR,
HAL_frontpanel.h (5,202 bytes)   
/*****************************************************************************
 * Copyright (C) 2018 SP Technology
 *              AISTB2 HAL implementation.
 *              SP Technology All Rights Reserved.
 *
 * Author: SP Technology
 * Date: 2019.01.14
 * Description:
 * Note:
 *****************************************************************************/

#ifndef HAL_FRONTPANEL_H_
#define HAL_FRONTPANEL_H_

#include "HAL_common.h"

#define HAL_FRONTPANEL_VERSION_100		100
#define HAL_FRONTPANEL_VERSION_LAST		102

#ifdef __cplusplus
extern "C" {
#endif

/**
 * led id.
 */
enum
{
	LED_POWER,
	LED_NETWORK,
	LED_AILED,
	LED_STATE,	//Definition for rcu keypressed
	LED_MAX,
};
/**
 * led state.
 */
enum
{
	LED_STATE_OFF = 0,
	LED_STATE_ON,
	LED_STATE_BLINK,
	LED_STATE_BOOT_UP,
	LED_STATE_BOOT_COMPLETE,
	LED_STATE_IDLE,
	
	LED_STATE_LISTEN_WAKEUP,				// 3-1 Wake-up
	LED_STATE_LISTEN_ACTIVE,				// 3-2 Listening Active
	LED_STATE_LISTEN_END,					// 3-3 Listening End
	LED_STATE_LISTEN_PROCESSING,			// 3-4 Processing
	LED_STATE_SPEAKING_SPEAKING,		// 4-1 Speaking			// 10
	LED_STATE_ERR_SPEAKING_SPEAKING,	// 4-2 Error Speaking
	LED_STATE_MIC_OFF,					// 5 Mic-Off			// 12
	LED_STATE_SPEAKER_MUTE,			// 6-1 Speaker Mute
	LED_STATE_SPEAKER_UNMUTE,		// 6-3 Volume up / unmute
	LED_STATE_SPEAKER_VOL_ZERO,		// 6-2 Volume Zero
	LED_STATE_SPEAKER_VOL_UP,		// 6-3 Volume up / unmute
	LED_STATE_SPEAKER_VOL_DOWN,		// 6-4 Volume down
	LED_STATE_SPEAKER_VOL_CONTINUOUS_CONTROL,		// 6-5 Volume continuous control
	LED_STATE_SYSTEM_ERR,					// 7 System Error
	LED_STATE_MIC_ON,					// 5-2 Mic-On			// 20
	
	LED_STATE_NUGU_CALL_OUTGOING = 100, 			// [NUGU CALL] 발신 시작
	LED_STATE_NUGU_CALL_INCOMING, 					// [NUGU CALL] 수신 시작
	LED_STATE_NUGU_CALL_ESTABLISHED, 				// [NUGU CALL] 전화 연결 됨 (수발신 공통)
	LED_STATE_NUGU_CALL_CLOSED, 					// [NUGU CALL] 통화가 정상적으로 종료됨
	LED_STATE_NUGU_CALL_CANCEL_BY_MT_BUSY, 			// [NUGU CALL] 상대방이 통화를 거부함
	LED_STATE_NUGU_CALL_CANCEL_BY_MO_BUSY, 			// [NUGU CALL] 상대방이 통화 중
	LED_STATE_NUGU_CALL_CANCEL_BY_MISSED_CALL, 		// [NUGU CALL] 상대방이 전화를 받지 않음
	LED_STATE_NUGU_CALL_CANCEL_BY_NETWORK_DROP, 	// [NUGU CALL] 네트웍이 불안정함
	LED_STATE_NUGU_CALL_CANCEL_BY_OEM_CALL, 		// [NUGU CALL] 상대방이 모바일일때 상대방의 전화로 OEM 전화가 수신되어 NUGU CALL 이 종료된 경우
	LED_STATE_NUGU_CALL_CANCEL_BY_INACTIVE, 		// [NUGU CALL] 상대방의 NUGU CALL 이 active 상태가 아님
	LED_STATE_NUGU_CALL_LOGOUT, 					// [NUGU CALL] 상대방이 NUGU 서비스에서 Logout 됨
	LED_STATE_NUGU_CALL_CANCEL_BY_POWER_OFF, 		// [NUGU CALL] 상대방의 기기가 모두 꺼져 있음
	LED_STATE_NUGU_CALL_CANCEL_BY_OUT_OF_SERVICE, 	// [NUGU CALL] 그외 기타 에러
	
	LED_STATE_TIMER_ON, 	// timer on
	LED_STATE_TIMER_OFF, 	// timer off
	LED_STATE_ALARM_ON, 	// alarm on
	LED_STATE_ALARM_OFF, 	// alarm off
	LED_STATE_BT_ON, 	// bluetooth on
	LED_STATE_BT_OFF, 	// bluetooth off
};

/**
 * led color.
 */
enum
{
    LED_COLOR_RED = 0,
    LED_COLOR_BLUE,
    LED_COLOR_GREEN,
    LED_COLOR_YELLOW,
    LED_COLOR_MARGENTA,
    LED_COLOR_VIOLET,
    LED_COLOR_EX1,
    LED_COLOR_EX2,
    LED_COLOR_EX3,
    LED_COLOR_EX4,
};



/**
 * get HAL interface version.
 */
int HAL_FrontPanelGetVersion();

/**
 * initialize front panel h/w interface.
 *
 * @return HAL_OK on success, other HAL_ERROR
 */
HAL_Error HAL_FrontPanelInit();

/**
 * de-initialize front panel h/w interface.
 *
 * @return HAL_OK on success, other HAL_ERROR
 */
HAL_Error HAL_FrontPanelDeinit();

/**
 * set LED on/off on front panel.
 *
 * @param index	Led id or 0 base index. see LED_XXX constants.
 * @param state new state of target led. see LED_STATE_XXX constants.
 *
 * @return HAL_OK on success, other HAL_ERROR
 */
HAL_Error HAL_FrontPanelSetLedState(int index, int state);

/**
 * set LED on/off on front panel.
 *
 * @param index	Led id or 0 base index. see LED_XXX constants.
 * @param state new state of target led. It is only for LED_STATE_SPEAKER_VOL_ZERO, LED_STATE_SPEAKER_VOL_UP,LED_STATE_SPEAKER_VOL_DOWN,LED_STATE_SPEAKER_VOL_CONTINUOUS_CONTROL.
 * @param volume volume value.
 * 
 * @return HAL_OK on success, other HAL_ERROR
 */
HAL_Error HAL_FrontPanelSetLedStateForVolume(int index, int state, int volume);


/**
 * set LED color on front panel.
 *
 * @param index Led id or 0 base index. see LED_XXX constants.
 * @param color color of target led. see LED_COLOR_XXX constants.
 *
 * @return HAL_OK on success, other HAL_ERROR
 */
HAL_Error HAL_FrontPanelSetLedColor(int index, int color);

/**
 * set Degree of Beamforming.
 *
 * @param index	Led id or 0 base index. see LED_XXX constants.
 * @param state new state of target led. see LED_STATE_XXX constants.
 * @param degree degree of beamforming. -60 ~ 60.
 * @return HAL_OK on success, other HAL_ERROR
 */
HAL_Error HAL_FrontPanelSetBeamformingDegree(int index, int state, int degree);

#ifdef __cplusplus
}
#endif

#endif
HAL_frontpanel.h (5,202 bytes)   

(ALTech) Wooshin Kang

2020-11-11 22:14

developer   ~0004951

Hi sam,

I informed it to M/W company.

thanks.

(ALTech) Wooshin Kang

2020-11-24 19:15

developer   ~0005143

Hi Sam,

MW doesn't use "HAL_frontpanel.h" anymore.
They use btv_oem_hal.h

Please check.

(ALTech) Wooshin Kang

2020-11-26 10:28

developer   ~0005167

Hi Sam,

They also have update "HAL_frontpanel.h". You can use it.

Thanks.

(SW) Sam Yang

2020-11-30 10:14

developer   ~0005210

fixed in FW "v522r13"

(SW) Sam Yang

2020-11-30 16:28

developer   ~0005223

Upload spec:
BTF_LED_Scenario2..xlsx (13,401 bytes)

(ALTech) Wooshin Kang

2020-12-01 09:40

developer   ~0005234

White blinking in booting time and Green led in standby mode are not implemented.
Please check it.

(ALTech) Wooshin Kang

2020-12-01 17:24

developer   ~0005248

Hi sam,

I will create new ticket for blinking white led and green led in stand by mode.

thanks.

Issue History

Date Modified Username Field Change
2020-10-30 16:20 (ALTech) Wooshin Kang New Issue
2020-10-30 16:20 (ALTech) Wooshin Kang Status new => assigned
2020-10-30 16:20 (ALTech) Wooshin Kang Assigned To => (SW) Sam Yang
2020-10-30 16:20 (ALTech) Wooshin Kang File Added: 스크린샷 2020-10-30 오후 5.19.40.png
2020-11-02 10:21 (SW) Sam Yang Note Added: 0004806
2020-11-02 15:23 (ALTech) Wooshin Kang Note Added: 0004811
2020-11-05 09:02 (SW) Sam Yang Note Added: 0004873
2020-11-05 20:01 (SW) Sam Yang File Added: led_status_scenario_list.png
2020-11-05 20:01 (SW) Sam Yang Note Added: 0004885
2020-11-05 20:02 (SW) Sam Yang Note Edited: 0004885
2020-11-06 08:43 (SW) Sam Yang Relationship added related to 0000876
2020-11-06 09:00 (SW) Sam Yang File Added: HAL_frontpanel.h
2020-11-06 09:00 (SW) Sam Yang Note Added: 0004888
2020-11-11 22:14 (ALTech) Wooshin Kang Note Added: 0004951
2020-11-13 11:06 (SW) Jacky Chiang Project T99X171.00 SKB Eagle => K18X001.00 SKB SWAN
2020-11-16 13:54 (SW) Jacky Chiang Issue Monitored: (SW) Jacky Chiang
2020-11-24 19:15 (ALTech) Wooshin Kang Note Added: 0005143
2020-11-26 10:28 (ALTech) Wooshin Kang Note Added: 0005167
2020-11-30 10:14 (SW) Sam Yang Status assigned => resolved
2020-11-30 10:14 (SW) Sam Yang Resolution open => fixed
2020-11-30 10:14 (SW) Sam Yang Note Added: 0005210
2020-11-30 16:28 (SW) Sam Yang File Added: BTF_LED_Scenario2..xlsx
2020-11-30 16:28 (SW) Sam Yang Note Added: 0005223
2020-11-30 16:28 (SW) Sam Yang Issue Monitored: (SW) Sam Yang
2020-11-30 16:28 (SW) Sam Yang Assigned To (SW) Sam Yang => (ALTech) Wooshin Kang
2020-12-01 09:40 (ALTech) Wooshin Kang Note Added: 0005234
2020-12-01 11:03 (ALTech) Wooshin Kang Assigned To (ALTech) Wooshin Kang =>
2020-12-01 11:03 (ALTech) Wooshin Kang Assigned To => (SW) Sam Yang
2020-12-01 15:58 (ALTech) Wooshin Kang Assigned To (SW) Sam Yang => (ALTech) Wooshin Kang
2020-12-01 15:58 (ALTech) Wooshin Kang Assigned To (ALTech) Wooshin Kang =>
2020-12-01 17:24 (ALTech) Wooshin Kang Assigned To => (ALTech) Wooshin Kang
2020-12-01 17:24 (ALTech) Wooshin Kang Status resolved => closed
2020-12-01 17:24 (ALTech) Wooshin Kang Note Added: 0005248